import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import Index from './pages/index';
import store from './store/configureStore';
import '@/common/styles/global.less'
import '@/common/lib-flexible/fix_pc.js'

const MOUNT_NODE = document.getElementById('root');

function render(Component){
	ReactDOM.render(
	  	<Provider store={store}>
	      <BrowserRouter>
	        <Component />
	      </BrowserRouter>
	    </Provider>,
	  MOUNT_NODE
	);
}


render(Index);

if (module.hot) {
	module.hot.accept();
}